Skip to content

feat - support readDirectory for ADT#18

Merged
ethanyhou merged 9 commits into
mainfrom
tori/supportListDir
Apr 22, 2026
Merged

feat - support readDirectory for ADT#18
ethanyhou merged 9 commits into
mainfrom
tori/supportListDir

Conversation

@xinyi-gong

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings April 22, 2026 04:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a workspace/readDirectory JSON-RPC handler to the Eclipse language client, enabling directory listing for ADT/virtual URIs by introducing a new protocol result type and implementing directory enumeration via Eclipse resources.

Changes:

  • Added workspace/readDirectory request handler in CopilotLanguageClient.
  • Implemented FileUtils.readDirectoryEntries(...) to enumerate IContainer members and map them to file-type codes.
  • Introduced ReadDirectoryResult protocol DTO for returning directory entries.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/utils/FileUtils.java Adds directory enumeration utility backing workspace/readDirectory.
com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/lsp/protocol/ReadDirectoryResult.java New protocol result type for directory entry listings.
com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/lsp/CopilotLanguageClient.java Exposes workspace/readDirectory JSON-RPC endpoint delegating to FileUtils.

jdneo
jdneo previously approved these changes Apr 22, 2026
jdneo
jdneo previously approved these changes Apr 22, 2026

@ethanyhou ethanyhou left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@ethanyhou ethanyhou merged commit f0677da into main Apr 22, 2026
4 checks passed
@ethanyhou ethanyhou deleted the tori/supportListDir branch April 22, 2026 08:46
@jdneo jdneo mentioned this pull request May 7, 2026
24 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants